package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.system.domain.Commission;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 佣金信息业务对象 t_commission
 *
 * @author joker
 * @date 2025-05-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Commission.class, reverseConvertGenerate = false)
public class CommissionBo extends BaseEntity {

    /**
     * 佣金ID
     */
    @NotNull(message = "佣金ID不能为空", groups = { EditGroup.class })
    private Long commissionId;

    /**
     * 佣金名称
     */
    @NotBlank(message = "佣金名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commissionName;

    /**
     * 佣金时效
     */
    @NotBlank(message = "佣金时效不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commissionValidityPeriod;

    /**
     * 佣金金额
     */
    @NotBlank(message = "佣金金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commissionMoney;

    /**
     * 备注
     */
    private String remark;


}
